package cn.xiongxf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient  // 开启服务发现功能
@MapperScan("cn.xiongxf.mapper")  // 扫描mapper包下的所有mapper接口，生成mapper的代理对象，给service注入使用
public class MovieServerApp {
    public static void main(String[] args) {
        SpringApplication.run(MovieServerApp.class,args);
    }
}
